package com.topisv.tms.utils.yto;

import java.io.IOException;

import com.topisv.tms.utils.InitProperties;
/**
 * 获得圆通电子面单参数
 * @author Administrator
 *
 */
public class YTOInitParams {
	
	public static String getQueryOrderUrl() throws IOException{
		try {
			return InitProperties.initWeService().getProperty("queryOrderUrl");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getAppKey() throws IOException{
		try {
			return InitProperties.initWeService().getProperty("appKey");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getSecret() throws IOException{
		try {
			return InitProperties.initWeService().getProperty("secret");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getUserId() throws IOException{
		try {
			return InitProperties.initWeService().getProperty("userId");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getMailNoUrl() throws IOException{
		try {
			return InitProperties.initWeService().getProperty("mailNoUrl");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getCreateOrderUrl() throws IOException{
		try {
			return InitProperties.initWeService().getProperty("createOrderUrl");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getCustomerId(String whcode) throws IOException{
		try {
			return InitProperties.initWeService().getProperty(whcode + "_customerId");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getClientId(String whcode) throws IOException{
		try {
			return InitProperties.initWeService().getProperty(whcode + "_clientId");
		} catch (IOException e) {
			throw e;
		}
	}
	
	public static String getParternId(String whcode) throws IOException{
		try {
			return InitProperties.initWeService().getProperty(whcode + "_parternId");
		} catch (IOException e) {
			throw e;
		}
	}

}
